package com.starinside.wp.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @Describle This Class Is
 * @Author ZengMin
 * @Date 2018/11/8 16:31
 * @Company Matt
 */
@Entity
@Table(name = "family_feeds")
@EqualsAndHashCode(callSuper = true)
@Data
public class FamilyFeed extends Domain {

    @Column(columnDefinition = "varchar(255) COMMENT '家长id'")
    private String uid;

    @Column(columnDefinition = "varchar(255) COMMENT '家长名字'")
    private String uname;

    @Column(columnDefinition = "varchar(255) COMMENT '孩子id'")
    private String childrenId;

    @Column(columnDefinition = "varchar(255) COMMENT '孩子名字'")
    private String childrenName;

    @Column(columnDefinition = "varchar(255) COMMENT '标题'")
    private String title;

    @Column(columnDefinition = "varchar(1024) COMMENT '内容'")
    private String content;

    @Column(columnDefinition = "varchar(1024) COMMENT '媒体列表，竖线分隔'")
    private String medias;

    @Column(columnDefinition = "varchar(1024) COMMENT '媒体类型，0图片，1视频'")
    private Integer mediaType = 0;

    @Transient
    private Boolean isPraises;

}
